
package com.springlearn.zhoufei.other.spring.demo6;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class JDCB1 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("./other/JDBC2.xml");
        StudentDAO dao = (StudentJDBCTemplate) context.getBean("studentJDBCTemplate");
        dao.insert();

    }
}